<template>
  <editor-content :editor="editor" />
</template>
 
<script setup>
import { Editor, EditorContent } from '@tiptap/vue-3';
import StarterKit from '@tiptap/starter-kit';
 
const editor = new Editor({
  content: '<p>初始内容</p>',
  extensions: [
    StarterKit.configure({
      // 自定义配置，如禁用某些功能
    }),
  ],
});
</script>